<template>
  <div>
    <child ref="child" />
  </div>
</template>

<script>
import Child from "./Child";
export default {
  data() {
    return {
        msg:'parent.msg'
    };
  },
  components: {
    Child,
  },
  mounted() {
    console.log(this.$refs.child.msg);
    console.log(this.$children[0].msg);
  },
};
</script>
